# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('miniweixin_core', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Vote',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('title', models.CharField(max_length=255, verbose_name='\u6807\u9898')),
                ('desc', models.TextField(verbose_name='\u5185\u5bb9')),
                ('choices', models.TextField(help_text='\u9009\u9879\u5217\u8868json\u4e32', verbose_name='\u6295\u7968\u9009\u9879')),
                ('is_mult', models.BooleanField(default=False, verbose_name='\u662f\u5426\u652f\u6301\u591a\u9009')),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('end_time', models.DateTimeField(verbose_name='\u622a\u6b62\u65e5\u671f')),
                ('user', models.ForeignKey(to='miniweixin_core.BkMiniWeixinUser')),
            ],
            options={
                'verbose_name': '\u6295\u7968',
                'verbose_name_plural': '\u6295\u7968',
            },
        ),
        migrations.CreateModel(
            name='VoteChoice',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('choice', models.IntegerField(verbose_name='\u7528\u6237\u9009\u62e9')),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('user', models.ForeignKey(to='miniweixin_core.BkMiniWeixinUser')),
                ('vote', models.ForeignKey(to='miniweixin.Vote')),
            ],
            options={
                'verbose_name': '\u7528\u6237\u9009\u62e9\u7684\u6295\u7968',
                'verbose_name_plural': '\u7528\u6237\u9009\u62e9\u7684\u6295\u7968',
            },
        ),
    ]
